﻿@model IEnumerable<Web.Crew>

<table>
    <tr>
        <th>
            name
        </th>
        <th>
            owner
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Userowner.name)
        </td>
        <td>
            @Html.ActionLink("Join", "Join", new { id=item.id }) |
            @Html.ActionLink("Details", "Details", new { id=item.id }) 
        </td>
    </tr>
}

</table>
